import { IQueryParams } from '@/widgets/table-pagination';

export const initialQuery: IQueryParams = {
  sorter: {}, // { id: 'DESC', text: 'ASC' }
  filter: {},
  pageNum: 1,
  pageSize: 10,
};

export const initialFilter = {
  name: '',
  owner: '',
};

export const initialEntity = {
  id: '',
  name: '',
  nameIconSrc: '',
  size: '',
  owner: '',
  updateTime: '',
  avatarBg: '',
};

export const pageSizeOpts = [5, 10, 20, 50];

export const pointTypes = {
  INITIAL: { text: '发起获得积分', value: 'INITIAL', color: 'blue' },
  ACCEPT: { text: '接受获得积分', value: 'ACCEPT', color: 'green' },
  FINISH: {
    text: '登记合同金额获得积分',
    value: 'FINISH',
    color: 'amber',
  },
  RELAY: {
    text: '转发获得积分',
    value: 'RELAY',
    color: 'pink',
  },
};
